package com.travel.common.exception;

/**
 * @Author: LiZhenhui
 * @Date: 2018/10/18 11:55
 * @Desc:
 */
public enum WorkCode {

    /**
     * 成功
     */
    SUCCESS(0, "SUCCESS"),

    LOGIN_TIME_OUT(1, "登录超时"),

    OTHER_SYSTEM(2, "其他系统异常"),

    SYSTEM(1001001, "系统异常"),

    INVALID_PARAM(1001002, "参数不正确"),

    ACCOUNT_ERROR(1001003, "账号密码不正确"),

    VERIFY_CODE_ERROR(1001004, "验证码不正确"),

    RECORD_NOT_EXIST(1001005, "记录不存在"),

    EXIST_SAME_NAME(1001006, "已存在相同分组名的记录"),

    EXIT_SAME_REFUND_ID(1001007, "已存在相同退款流水号的记录"),

    ORDER_TRANSFER(1001008, "订单已转接过，无法转接"),

    PROJECT_NOT_EXIST(1001009, "未查询到项目信息"),

    SPECIAL_NOT_EXIST(1001010, "未查询到项目规格信息"),

    SPECIAL_MORE(1001011, "未查询到项目规格信息"),

    STEP_ERROR(1001012, "请输入正确的订单步骤"),

    REFUND_STATE_ERROR(1001013, "请选择正确的订单退款状态（退款中或已退款）"),

    ORDER_EXCEL_DATA_NULL(1001014, "未查询到订单数据，无法导出Excel"),

    ORDER_UN_COMPLETE(1001015, "存在未完成的订单，无法删除项目"),

    ORDER_UN_GROUP(1001016, "存在未完成的订单，无法删除项目分组"),

    WAIT_GROUP_NOT_EXIST(1001017, "未建立【待分组】"),

    ACCOUNT_UN_ABLE(1001018, "账号已被禁用"),

    BEST_SIGN_API_EXCEPTION(1001019, "上上签接口请求异常"),

    BEST_SIGN_API_ERROR(1001020, "上上签接口请求错误"),

    CUSTOMER_EXCEL_DATA_NULL(1001021, "未查询到客户数据，无法导出Excel"),

    TEMPLATE_FILE_NOT_EXIST(1001022, "文件未配置，无法下载"),

    EXCEL_FILE_NOT_CORRECT(1001023, "Excel文件格式不正确"),

    EXCEL_DATE_NOT_CORRECT(1001024, "日期格式不正确"),

    PROJECT_SPECIAL_NOT_EXIST(1001025, "导入失败，以下项目信息-出行日期不存在："),

    CUSTOMER_NOT_EXIST(1001026, "导入失败，以下用户信息不存在："),

    EXCEL_EMPTY(1001027, "excel表不允许空数据"),

    ORDER_EXCEL_DATA_EMPTY(1001028, "订单excel行不允许空数据"),

    CUSTOMER_EXCEL_DATA_EMPTY(1001029, "客户excel姓名和手机号必须填写"),

    CUSTOMER_EXIST(1001030, "导入失败，以下用户姓名-手机号已存在："),

    CUSTOMER_REPEAT(1001031, "excel中存在相同的客户数据"),

    SEND_MAIL_ERROR(1001032, "发送邮件失败"),

    SEND_MSG_ERROR(1001033, "发送短信失败"),

    MAIL_RECEIVE_NULL(1001034, "邮件收件人邮箱为空"),

    MSG_RECEIVE_NULL(1001035, "短信收件人手机号码为空"),

    REFUND_UN_PERMISSION(1001036, "有赞订单不允许主动退款"),

    EXCEL_DATA_NULL(1001037, "未查询到数据，无法导出Excel"),

    PRODUCT_NOT_EXIST(1001038, "未配置产品部部门信息"),

    OPERATOR_NOT_EXIST(1001039, "未配置用户运营部部门信息"),

    PROJECT_NOT_BE_NULL(1001040, "导入excel，项目名不允许空值"),

    TRAVEL_DATE_NOT_BE_NULL(1001041, "导入excel，出行日期不允许空值"),

    TARGET_NOT_FULL(1001042, ""),

    MEMBER_NOT_EXIST(1001043, "级别不存在"),

    EXIST_POSITION_SOURCE(1001044, "广告版位下存在对应素材，不能删除"),

    EXIST_CLASS_ARTICLE(1001045, "文章分类下存在对应文章，不能删除"),

    ORDER_ID_REPEAT(1001046, "excel中存在相同的订单号"),
    ;

    /**
     * 错误码
     */
    private Integer code;

    /**
     * 错误信息
     */
    private String message;

    WorkCode(Integer code, String message){
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getMessage() {
        return message;
    }
}
